const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  outputDir: path.join(__dirname, './mobile'),
  publicPath: process.env.NODE_ENV === 'production'
    ? './'
    : '/',
  chainWebpack: config => {

    config.resolve.alias
      .set('~', path.join(__dirname, 'src'))

  },
  devServer: {
    proxy: {
      '/config': {
        target: process.env.VUE_APP_BASEURLPROXY
      }
    }

  }

})
